package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jdrx.sw.sewage.utils.JsonSerializerUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "DrugConsStatisticsVO", description = "加药统计")
@Data
public class DrugConsStatisticsVO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime intervalTime;

    @ApiModelProperty(value = "加药数量")
    @JsonSerialize(using = JsonSerializerUtils.class)
    private Double amount;

    @ApiModelProperty(value = "加药品类")
    private String categoryName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public LocalDateTime getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(LocalDateTime intervalTime) {
        this.intervalTime = intervalTime;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }
}